package com.fancy.user.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("用户登录响应")
public class UserLoginResponseVO {
    @ApiModelProperty(value = "访问令牌", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...")
    private String token;
    
    @ApiModelProperty(value = "过期时间戳", example = "1672617600000")
    private Long expireTime;
    
    @ApiModelProperty("用户信息")
    private UserInfo userInfo;
    
    @Data
    @ApiModel("用户基本信息")
    public static class UserInfo {
        @ApiModelProperty(value = "用户ID", example = "12345")
        private Long userId;
        
        @ApiModelProperty(value = "用户名", example = "testuser")
        private String username;
        
        @ApiModelProperty(value = "昵称", example = "测试用户")
        private String nickname;
        
        @ApiModelProperty(value = "头像URL", example = "/images/default_avatar.png")
        private String avatarUrl;
        
        @ApiModelProperty(value = "等级", example = "2")
        private Integer level;
        
        @ApiModelProperty(value = "经验值", example = "150")
        private Integer exp;
        
        @ApiModelProperty(value = "会员类型", example = "VIP")
        private String membershipType;
    }
}